package com.geekstudy.week9;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Week9DubboProviderMain {

    static final Logger logger = LoggerFactory.getLogger(Week9DubboProviderMain.class);


    public static void main(String[] args) {

        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(Week9DubboProviderMain.class, args);
        int beanCount = configurableApplicationContext.getBeanDefinitionCount();
        logger.info(" Dubbo Provider beanCount:{} ", beanCount);

    }
}
